class Person {
    public void eat(Pear pear) {
        Pear peeled_pear = pear.get_peeled();
        System.out.println("Peeled pear: " + peeled_pear);
    }
}

class Pear {
    Pear get_peeled() {
        return ToolPeeler.peel(this);
    }
}

class ToolPeeler {
    static Pear peel(Pear pear) {
        return pear;
    }
}

public class PassingThis {
    public static void main(String[] args) {
        Person person = new Person();
        Pear pear = new Pear();
        person.eat(pear);
    }
}
